import { createRouter, createWebHashHistory } from "vue-router"

const seedFilter = () => import('../views/search/SeedFilter')
const webSocketDataParse = () => import('../views/dev/WebSocketDataParse')
const resultPage = () => import('../views/ResultPage')
const FortuneMonitor = () => import('../views/monitor/FortuneMonitor')
const welcome = () => import('../views/WelcomeToFortune')
const gameProtoFilter = () => import('../views/search/GameProtoFilter')

const routes = [
    {
        path: '/',
        component: welcome
    },
    {
        path: '/monitor/config',
        component: FortuneMonitor
    },
    {
        path: '/dev/webSocketDataParse',
        component: webSocketDataParse
    },
    {
        path: '/search/seed',
        component: seedFilter
    },
    {
        path: '/search/protos',
        component: gameProtoFilter
    },
    {
        path: '/:w+',
        name: '*',
        component: resultPage
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes: routes
})

export default router
